import request from '@/utils/httpRequest'
// 创建保存标签信息
export function tagCreate(query) {
  return request({
    url: '/bsnl-product/tag/create',
    method: 'post',
    data: query
  })
}
// 更新标签信息
export function tagUpdate(query) {
  return request({
    url: '/bsnl-product/tag/update',
    method: 'post',
    data: query
  })
}
// 查询单个标签信息(根据id)
export function getTagById(id) {
  return request({
    url: '/bsnl-product/tag/' + id,
    method: 'get'
  })
}
// 删除/恢复标签(根据id)
export function editTagDeleteFlagById(query) {
  return request({
    url: '/bsnl-product/tag/delete',
    method: 'post',
    data: query
  })
}
// 获取全部的标签信息
export function tagList(query) {
  return request({
    url: '/bsnl-product/tag/list',
    method: 'get',
    params: query
  })
}
// 通过标签名查询标签
export function getTagByName(query) {
  return request({
    url: '/bsnl-product/tag/name',
    method: 'get',
    params: query
  })
}
// 模糊查询标签信息
export function tagQuery(query) {
  return request({
    url: '/bsnl-product/tag/query',
    method: 'post',
    data: query
  })
}